package com.io;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class HomeWork_4 {
    public static void main(String[] args) throws IOException {
      //创建
        Properties properties = new Properties();
        //添加元素
//        properties.setProperty("姓名","赵子龙");
//        properties.setProperty("籍贯","常山");
//        properties.setProperty("成名战","七进七出");
        properties.setProperty("id","2320010403");
        properties.setProperty("name","make");
        properties.setProperty("age","nighteen");
        //存储
        properties.store(new FileWriter("src\\mysql.properties"),null);//comments:注释


    }
}
